Adwaita: Fix border-spacing for headerbar
authornana-4 <hnmaigo@gmail.com>
Tue, 25 Aug 2020 14:21:40 +0000 (23:21 +0900)
committernana-4 <hnmaigo@gmail.com>
Wed, 26 Aug 2020 15:38:17 +0000 (00:38 +0900)
GtkHeaderBar uses GtkCenterBox internally nowadays, so the theme needs
to correspond to it.

gtk/theme/Adwaita/_common.scss

index 1b03c4d16f735a2a821e89e823e95a0a7d19650c..1d732c984f9987d4e686bbff0656e9903a815626 100644 (file)
@@ -1408,11 +1408,6 @@ headerbar {
     transition: $backdrop_transition;
   }
 
-  box.start,
-  box.end {
-    border-spacing: 6px;
-  }
-
   .title {
     padding-left: 12px;
     padding-right: 12px;
@@ -1488,7 +1483,13 @@ headerbar {
 }
 
 headerbar {
-  border-spacing: 6px;
+  > windowhandle > box {
+    &,
+    > box.start,
+    > box.end {
+      border-spacing: 6px;
+    }
+  }
 
   // add vertical margins to common widget on the headerbar to avoid them spanning the whole height
   entry,